<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
    <f:loadBundle basename="messages" var="msgs"/>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="description" content="SISVCE Elections Version 1.0" />
        <meta name="keywords" content="SISVCE, Elections" />
        <meta name="author" content="GG developments" />
        <link rel="stylesheet" type="text/css" href="css/style.css" />
        <link rel="stylesheet" type="text/css" href="css/customStyle.css" />
        <link rel="stylesheet" type="text/css" href="css/htmlObjects.css" />
        
        <script type="text/javascript" src="js/prototype.js" language="javascript"></script>
        <script type="text/javascript" src="js/effects.js" language="javascript"></script>
        <script type="text/javascript" src="js/controls.js" language="javascript"></script>
        <script type="text/javascript" src="js/control.modal.2.0.0.RC1.js" language="javascript"></script>
        <script type="text/javascript" src="js/scriptaculous.js" language="javascript"></script>
        <script type="text/javascript" src="js/utils.js" language="javascript"></script>
        <ui:insert name="customs"/>
        <title>SISVCE Conteo Votos</title>
    </head>
    <body> <div id="topheader">
                    <div align="left" class="smallgraytext">
                        
                           <div id="logo">
                    <div style="margin-top:70px" class="whitetitle"></div> 
                </div></div>
                    <div id="toplinks" class="smallgraytext">
                        <h:form>
                            <a href="http://192.168.0.60:9080/vce-web/login.jsf">Inicio</a>
                            <c:if test="#{currentUser != null}"><h:commandLink value="| Salir" action="#{loginBean.logout}"/></c:if>
                        </h:form>
                        <div id="userinfo" class="smallgraytext">
                            <ui:insert name="userId">
                                <c:if test="#{currentUser != null}">
                                    Bienvenido #{currentUser.firstName}!
                                    <br/>
                                    #{currentUser.nameRole}
                                </c:if>
                            </ui:insert>
                        </div>
                    </div>
                </div>
                <div id="menu">
                    <div align="right">
                        <ui:insert name="menu-content">
                            <h:form id="menuForm">
                                <rich:toolBar width="100%" itemSeparator="line">
                                    <c:if test="#{currentUser.administrator || currentUser.operator}">
                                        <rich:dropDownMenu value="Registro Conteo" direction="bottom-left" 
                                                           rendered="#{!currentUser.supervisor}" jointPoint="br" panelBorderColor="none">
                                            <rich:menuItem value="Rápido" action="#{documentRapidBean.init}">
                                                <f:param name="election" value="ALCALDE"/>
                                                <f:param name="counting" value="RAPIDO"/>
                                                <f:param name="round" value="PRIMERA"/>
                                            </rich:menuItem>
                                            <rich:menuItem value="Paralelo" action="#{paralelCountBean.init}">
                                                <f:param name="election" value="ALCALDE"/>
                                                <f:param name="counting" value="PARALELO"/>
                                                <f:param name="round" value="PRIMERA"/>
                                            </rich:menuItem>
                                            <rich:menuItem disabled="true" value="Oficial" action="#{documentRapidBean.init}">
                                                <f:param name="election" value="ALCALDE"/>
                                                <f:param name="counting" value="PARALELO"/>
                                                <f:param name="round" value="PRIMERA"/>
                                            </rich:menuItem>
                                        </rich:dropDownMenu>
                                    </c:if>
                                    <c:if test="#{currentUser.administrator || currentUser.supervisor}">
                                        <rich:dropDownMenu value="Verificación Conteo" direction="bottom-left" 
                                                           jointPoint="br" panelBorderColor="none">
                                            <rich:menuItem value="Paralelo" action="#{modifyRapidBean.startup}">
                                                <f:param name="election" value="ALCALDE"/>
                                                <f:param name="counting" value="PARALELO"/>
                                                <f:param name="round" value="PRIMERA"/>
                                            </rich:menuItem>
                                        </rich:dropDownMenu>
                                    </c:if>
                                    <c:if test="#{currentUser.administrator || currentUser.supervisor}">
                                        <rich:dropDownMenu value="Reportes" direction="bottom-left" jointPoint="br">
                                            <rich:menuItem submitMode="none">
                                                <h:outputLink value="../birt-viewer/frameset?__report=Report/vce_counting_votes.rptdesign" target="_blank">
                                                    <h:outputText value="Conteo votos"></h:outputText>
                                                </h:outputLink>
                                            </rich:menuItem>
                                            <rich:menuItem submitMode="none">
                                                <h:outputLink value="../birt-viewer/frameset?__report=Report/vce_tendencia_sample.rptdesign" target="_blank">
                                                    <h:outputText value="Tendencia muestra"></h:outputText>
                                                </h:outputLink>
                                            </rich:menuItem>
                                            <rich:menuItem submitMode="none">
                                                <h:outputLink value="../birt-viewer/frameset?__report=Report/vce_tendencia_voto.rptdesign" target="_blank">
                                                    <h:outputText value="Tendencia votos"></h:outputText>
                                                </h:outputLink>
                                            </rich:menuItem>
                                            <rich:menuItem submitMode="none">
                                                <h:outputLink value="../birt-viewer/frameset?__report=Report/vce_comparativo.rptdesign" target="_blank">
                                                    <h:outputText value="Comparativo jrvs muestra y total jrvs"></h:outputText>
                                                </h:outputLink>
                                            </rich:menuItem>
                                            <rich:menuItem submitMode="none">
                                                <h:outputLink value="../birt-viewer/frameset?__report=Report/vce_jrvs_registradas.rptdesign" target="_blank">
                                                    <h:outputText value="Detalle JRV's registradas"></h:outputText>
                                                </h:outputLink>
                                            </rich:menuItem>
                                            <rich:menuItem submitMode="none">
                                                <h:outputLink value="../birt-viewer/frameset?__report=Report/vce_tracked_towns.rptdesign" target="_blank">
                                                    <h:outputText value="Resultados - Municipios"></h:outputText>
                                                </h:outputLink>
                                            </rich:menuItem>
                                            <rich:menuItem submitMode="none">
                                                <h:outputLink value="../birt-viewer/frameset?__report=Report/vce_jrvs_not_registered.rptdesign" target="_blank">
                                                    <h:outputText value="Jrv's no registradas"></h:outputText>
                                                </h:outputLink>
                                            </rich:menuItem>
                                            <rich:menuItem submitMode="none">
                                                <h:outputLink value="../birt-viewer/frameset?__report=Report/vce_jrvs_registradas_orden.rptdesign" target="_blank">
                                                    <h:outputText value="Detalle JRV's registradas - Chequeo"></h:outputText>
                                                </h:outputLink>
                                            </rich:menuItem>
                                        </rich:dropDownMenu>
                                    </c:if>
                                </rich:toolBar>
                            </h:form>
                        </ui:insert>
                    </div>
                </div>
        <div id="page" align="center">
            <div id="content" style="width:1100px">
                 
             
               
                <div id="contenttext">
                    <div style="padding:1px">
                        <span class="titletext"><ui:insert name="title"></ui:insert></span>
                    </div>
                    <div class="bodytext" style="padding:1px;" align="justify">
                        <ui:insert name="main-content"></ui:insert>
                    </div>
                </div>
                <div style="display:none;" id="leftpanel">
                    <div align="justify" class="graypanel">
                        <ui:insert name="news-content"></ui:insert>
                    </div>
                </div>
                <div id="footer" class="smallgraytext">
                    <a href="http://192.168.0.60:9080/vce-web/login.jsf">Inicio </a>
                    <a href="#" target="_blank">| SisVce 2012</a> 
                </div>
            </div>
        </div>
        <script type="text/javascript"> 
            document.onkeypress = stopRKey; 
        </script>
    </body>
</html>